package com.wondream.myframework.app.request;

import com.wondream.myframework.app.common.util.bbgJwt.JwtUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class GenerateJwtToken {

    Log logger = LogFactory.getLog(GenerateJwtToken.class);

    @Test
    public void generate(){
        Map<String, Object> userInfoTk = new HashMap<>();
//        userInfoTk.put("userId", "100064");
        userInfoTk.put("userId", "817CDD115387307C70CE0DD9296BB1D5");
        userInfoTk.put("userId", "A4554A22B3100459ED2845C5CBB0A658");
//        userInfoTk.put("userId", "A4554A22B310045907266AC5666A1648");
        userInfoTk.put("userId", "A4554A22B310045900BF729327455153");
        userInfoTk.put("openId", "oRcAk5SGlIme_4zB5hkuzrQQs4k8");
        String token = JwtUtils.generateToken(userInfoTk);
        logger.info(token);
    }
    /***
     *  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzZXNzaW9uS2V5IjpudWxsLCJvcGVuSWQiOiJvUmNBazVTR2xJbWVfNHpCNWhrdXpyUVFzNGs4Iiwic3ViIjoiMTAwMDY0IiwiaWF0IjoxNjIwNjE3MjYzLCJleHAiOjE2MjA3MDM2NjN9.jBPMkwNI0EbOF9FblZRZ_naG-__bs2kRM3F20gkkUYMMFcvwDhRycDF2PkYOxvkQPVQHOHQuDzmnZ2rMbhqvYw
     */


}
